package example.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author guoQ.z
 * @date 2020/12/15 16:26
 * TODO
 */
@Data
public class ValidationVo {

    @Length(min = 0, max = 5, message = "id 长度不够")
    private String id;

    @NotNull(message = "name 不能为 空")
    private String name;

    private String gender;


}
